﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Playables.ScriptPlayableBinding
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

#nullable disable
namespace UnityEngine.Playables
{
  /// <summary>
  ///   <para>A PlayableBinding that contains information representing a ScriptingPlayableOutput.</para>
  /// </summary>
  public static class ScriptPlayableBinding
  {
    /// <summary>
    ///   <para>Creates a PlayableBinding that contains information representing a ScriptPlayableOutput.</para>
    /// </summary>
    /// <param name="key">A reference to a UnityEngine.Object that acts as a key for this binding.</param>
    /// <param name="type">The type of object that will be bound to the ScriptPlayableOutput.</param>
    /// <param name="name">The name of the ScriptPlayableOutput.</param>
    /// <returns>
    ///   <para>Returns a PlayableBinding that contains information that is used to create a ScriptPlayableOutput.</para>
    /// </returns>
    public static PlayableBinding Create(string name, UnityEngine.Object key, System.Type type)
    {
      return PlayableBinding.CreateInternal(name, key, type, new PlayableBinding.CreateOutputMethod(ScriptPlayableBinding.CreateScriptOutput));
    }

    private static PlayableOutput CreateScriptOutput(PlayableGraph graph, string name)
    {
      return (PlayableOutput) ScriptPlayableOutput.Create(graph, name);
    }
  }
}
